var express = require('express');
var router = express.Router(); // 实例化路由对象

// get 请求
router.get('/', function (req, res, next) {
  // res.render 渲染模板
  res.render('index', { title: 'Hello World' });
});

router.get('/abc', function (req, res) {
  res.send('abc');
});

module.exports = router;
